/**
 *
 */
package com.ds.avare.place;

/**
 * @author zkhan
 * Game TFR areas
 *
 */
public class GameTFR {
    /*
     * wget http://www.aopa.org/Flight-Planning/Tfrs/Stadiums-and-Speedways
     * cat Stadiums-and-Speedways | grep "<p>[0-9].*\/.*</p>" | sed 's/<p>//' | sed 's/<\/p>//' > gtfr
     *
    #!/usr/local/bin/perl
    open (MYFILE, 'gtfr');
    while (<MYFILE>) {
        chomp;
        @data = split("/");
        $_ = $data[0];
        @num = split(/[N'"]/);
        $lat = $num[0] + $num[1] / 60.0 + $num[2] / 3600.0;
        $_ = $data[1];
        @num = split(/[W'"]/);
        $lon = $num[0] + $num[1] / 60.0 + $num[2] / 3600.0;
        print "{" . $lat . ",-" . $lon .  "},\n";
    }
    */
    public static final double[][] GAME_TFR_COORDS = {
        /*
         * LAT,LON, 3 mile radius
         */
            {33.76,-84.4},
            {33.5275,-112.2625},
            {39.27,-76.62},
            {42.77,-78.79},
            {35.22,-80.85},
            {41.86,-87.62},
            {39.1,-84.51},
            {41.5030555555556,-81.6988888888889},
            {32.84,-96.91},
            {39.74,-105.02},
            {42.33,-83.07},
            {44.5,-88.06},
            {29.6847694444444,-95.41095},
            {39.7647222222222,-86.1677777777778},
            {30.32,-81.64},
            {39.05,-94.47},
            {25.95,-80.24},
            {44.97,-93.26},
            {42.09,-71.27},
            {29.95,-90.08},
            {40.81,-74.08},
            {40.81,-74.08},
            {37.75,-122.2},
            {39.9,-75.17},
            {40.45,-80.01},
            {38.63,-90.19},
            {32.79,-117.12},
            {37.71,-122.38},
            {47.59,-122.33},
            {27.98,-82.51},
            {36.1663888888889,-86.7711111111111},
            {38.91,-76.87},
            {33.8,-117.89},
            {33.45,-112.07},
            {33.73,-84.39},
            {39.28,-76.62},
            {42.34,-71.1},
            {41.95,-87.66},
            {41.83,-87.63},
            {39.1,-84.51},
            {41.49,-81.67},
            {39.75,-104.99},
            {42.3389861111111,-83.0486305555555},
            {25.95,-80.24},
            {29.7555555555556,-95.3558333333333},
            {39.05,-94.47},
            {34.07,-118.25},
            {43.03,-87.97},
            {44.97,-93.26},
            {40.75,-73.84},
            {40.83,-73.93},
            {37.75,-122.2},
            {39.9,-75.17},
            {40.45,-80.01},
            {38.62,-90.19},
            {32.7069444444444,-117.156666666667},
            {37.7783333333333,-122.388888888889},
            {47.6,-122.33},
            {27.77,-82.65},
            {32.75,-97.08},
            {38.8733333333333,-76.0069444444444},
            {33.4258333333333,-111.931944444444},
            {35.8488888888889,-90},
            {32.6022222222222,-85.4888888888889},
            {40.1980555555556,-85.415},
            {31.53,-97.1480555555556},
            {43.6027777777778,-116.204444444444},
            {42.3372222222222,-71.1719444444444},
            {41.3783333333333,-83.6541666666667},
            {40.2588888888889,-111.656111111111},
            {36.8144444444444,-119.751111111111},
            {43.5777777777778,-84.7719444444444},
            {34.6786111111111,-82.8430555555556},
            {40.5625,-105.141111111111},
            {35.995,-78.9419444444444},
            {35.5963888888889,-77.3655555555555},
            {42.2533333333333,-83.6486111111111},
            {30.4377777777778,-84.3044444444444},
            {33.7336111111111,-84.3916666666667},
            {39.1808333333333,-86.5255555555556},
            {42.8333333333333,-93.6361111111111},
            {39.2041666666667,-96.5833333333333},
            {41.1391666666667,-81.3136111111111},
            {30.4119444444444,-91.1836111111111},
            {32.5305555555556,-92.6525},
            {38.4252777777778,-82.4227777777778},
            {39.5194444444444,-84.7330555555556},
            {42.7280555555556,-84.485},
            {35.8511111111111,-86.3683333333333},
            {33.4561111111111,-88.7930555555556},
            {32.2780555555556,-106.748055555556},
            {35.8011111111111,-78.72},
            {41.935,-88.7777777777778},
            {42.0652777777778,-87.6925},
            {40.0047222222222,-83.0222222222222},
            {36.1258333333333,-97.0661111111111},
            {44.5588888888889,-123.28},
            {40.8119444444444,-77.8561111111111},
            {40.4338888888889,-86.9180555555556},
            {29.7161111111111,-95.4091666666667},
            {40.5238888888889,-74.44},
            {32.7719444444444,-117.071944444444},
            {37.3380555555556,-121.883888888889},
            {27.4311111111111,-122.159722222222},
            {43.0361111111111,-76.1366666666667},
            {39.8938888888889,-75.1580555555556},
            {30.6097222222222,-96.3402777777778},
            {32.7094444444445,-97.3680555555555},
            {33.5911111111111,-101.872222222222},
            {29.5908333333333,-90.0811111111111},
            {38.9972222222222,-104.842777777778},
            {41.4405555555556,-73.9655555555556},
            {38.9802777777778,-76.4816666666667},
            {41.0394444444444,-81.4563888888889},
            {33.2075,-87.5505555555555},
            {33.5116666666667,-86.8427777777778},
            {32.2286111111111,-110.948611111111},
            {36.0686111111111,-94.1772222222222},
            {43,-78.45},
            {37.8713888888889,-122.251111111111},
            {34.1613888888889,-118.1675},
            {28.6091666666667,-81.1855555555556},
            {39.1308333333333,-84.5136111111111},
            {40.0091666666667,-105.266388888889},
            {41.7530555555556,-72.6488888888889},
            {29.6505555555556,-82.3480555555555},
            {33.9261111111111,-83.3613888888889},
            {21.3722222222222,-157.930833333333},
            {29.7213888888889,-95.3494444444444},
            {40.0988888888889,-88.2361111111111},
            {41.6588888888889,-91.5511111111111},
            {38.9630555555556,-95.2461111111111},
            {38.0230555555556,-84.505},
            {30.2141666666667,-92.0419444444444},
            {32.5322222222222,-92.065},
            {38.205,-85.7569444444444},
            {38.99,-76.9469444444445},
            {35.1211111111111,-80.21},
            {25.7761111111111,-80.21},
            {42.2661111111111,-83.7488888888889},
            {44.9738888888889,-93.2580555555556},
            {34.3619444444444,-89.5338888888889},
            {38.9361111111111,-92.3330555555555},
            {40.8211111111111,-96.705},
            {36.0847222222222,-115.020277777778},
            {39.545,-119.820277777778},
            {35.0669444444444,-106.631111111111},
            {35.9069444444444,-79.0480555555555},
            {33.2097222222222,-97.1586111111111},
            {41.6980555555556,-86.23},
            {35.2058333333333,-97.4419444444444},
            {44.0583333333333,-123.063888888889},
            {40.4647222222222,-80.0094444444444},
            {33.9802777777778,-81.0230555555556},
            {34.0130555555556,-118.290277777778},
            {31.3366666666667,-89.3288888888889},
            {35.9575,-83.3288888888889},
            {30.2833333333333,-97.7338888888889},
            {31.7702777777778,-106.508333333333},
            {36.1502777777778,-95.9461111111111},
            {40.7602777777778,-111.845555555556},
            {38.0419444444444,-78.5119444444444},
            {47.6516666666667,-122.303611111111},
            {43.0683333333333,-89.4122222222222},
            {41.3102777777778,-105.579166666667},
            {41.7436111111111,-111.806944444444},
            {36.1425,-86.8066666666667},
            {37.2208333333333,-80.4197222222222},
            {36.1288888888889,-80.2563888888889},
            {46.7302777777778,-117.159166666667},
            {39.6369444444444,-79.9861111111111},
            {42.2844444444444,-85.6097222222222},
            {33.3852777777778,-84.3177777777778},
            {36.5158333333333,-82.2572222222222},
            {34.0861111111111,-117.498611111111},
            {41.4666666666667,-88.0666666666667},
            {34.295,-79.9052777777778},
            {29.1855555555556,-81.0691666666667},
            {39.1891666666667,-75.5341666666667},
            {38.6533333333333,-90.1327777777778},
            {25.4888888888889,-80.415},
            {39.7947222222222,-86.235},
            {38.1644444444444,-122.457777777778},
            {39.1175,-94.8311111111111},
            {36.2666666666667,-115.016666666667},
            {35.3527777777778,-80.6841666666667},
            {40.8111111111111,-82.4952777777778},
            {36.6338888888889,-79.8511111111111},
            {42.0680555555556,-84.2405555555556},
            {43.0205555555556,-88.01},
            {36.0666666666667,-86.4166666666667},
            {40.7297222222222,-75.3208333333333},
            {43.3641666666667,-71.4597222222222},
            {33.3747222222222,-112.310555555556},
            {38.5925,-104.677222222222},
            {37.5927777777778,-77.4205555555556},
            {33.5694444444444,-86.0658333333333},
            {33.0383333333333,-97.2819444444444},
            {42.3408333333333,-76.9325}
    };

    public static final double RADIUS_NM = 3.0; // NM

    public static final String GAME_TEXT = "FDC 9/5151 EFFECTIVE IMMEDIATELY UNTIL FURTHER NOTICE (CHECK GAME SCHEDULE). COMMENCING ONE HOUR BEFORE THE SCHEDULED TIME OF THE EVENT UNTIL ONE HOUR AFTER THE END OF THE EVENT. ALL AIRCRAFT AND PARACHUTE OPERATIONS ARE PROHIBITED WITHIN A 3 NMR UP TO AND INCLUDING 3000 FT AGL.";
}